package com.immunology.service.impl;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.immunology.dao.SyndromeDao;
import com.immunology.domain.Role;
import com.immunology.domain.Syndrome;
import com.immunology.exception.DaoException;
import com.immunology.service.SyndromeService;

@Service
public class SyndromeServiceImpl implements SyndromeService{

	@Autowired
	private SyndromeDao syndromeDao;

	@Override
	public Syndrome findById(Long id) throws DaoException {
		return syndromeDao.findById(id);
	}

	@Override
	public List<Syndrome> getAll() throws DaoException {
		return syndromeDao.getAll();
	}

	@Override
	public void saveOrUpdate(Collection<Syndrome> entities) throws DaoException {
		syndromeDao.saveOrUpdate(entities);
	}

	@Override
	public void saveOrUpdate(Syndrome... entities) throws DaoException {
		syndromeDao.saveOrUpdate(entities);
	}

	@Override
	public void update(Collection<Syndrome> entities) throws DaoException {
		syndromeDao.update(entities);
	}

	@Override
	public void update(Syndrome... entities) throws DaoException {
		syndromeDao.update(entities);
	}

	@Override
	public void delete(Collection<Syndrome> entities) throws DaoException {
		syndromeDao.delete(entities);
	}
	
	@Override
	public void delete(Syndrome... entities) throws DaoException {
		syndromeDao.delete(entities);
	}

	@Override
	public void deleteAll() throws DaoException {
		syndromeDao.deleteAll();
	}

	@Override
	public void save(Collection<Syndrome> entities) throws DaoException {
		syndromeDao.save(entities);
	}

	@Override
	public void save(Syndrome... entities) throws DaoException {
		syndromeDao.save(entities);
	}
}
